package com.honghu.cloud.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableName;
import com.honghu.cloud.common.bean.IdEntity;
import com.honghu.cloud.constant.Globals;
import com.honghu.cloud.dto.AccessoryDto;

/**
 * 商品规格值管理类，用来描述商品属性信息
 * @author Administrator
 *
 */
@TableName(Globals.DEFAULT_TABLE_SUFFIX + "goodsspecproperty")
public class GoodsSpecProperty extends IdEntity {
	
	private static final long serialVersionUID = -2801660056279959307L;
	
	private Long specImage_id; // 规格图片id
	private Long spec_id; // 商品规格id
	
	private int sequence;//序号
	private String value;//规格值
	private AccessoryDto specImage;//规格图片
	private GoodsSpecification spec;//商品规格
	private List<Goods> goods_list = new ArrayList<Goods>();// 规格中所在商品
	private List<GoodsCart> cart_list = new ArrayList<GoodsCart>();// 规格中所在商品购物车

	public GoodsSpecProperty() {
	}

	public GoodsSpecProperty(Long id, Date addTime) {
		super(id, addTime);
	}

	public GoodsSpecProperty(Long id) {
		super.setId(id);
	}

	public List<GoodsCart> getCart_list() {
		return this.cart_list;
	}

	public void setCart_list(List<GoodsCart> cart_list) {
		this.cart_list = cart_list;
	}

	public List<Goods> getGoods_list() {
		return this.goods_list;
	}

	public void setGoods_list(List<Goods> goods_list) {
		this.goods_list = goods_list;
	}

	public int getSequence() {
		return this.sequence;
	}

	public void setSequence(int sequence) {
		this.sequence = sequence;
	}

	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public AccessoryDto getSpecImage() {
		return this.specImage;
	}

	public void setSpecImage(AccessoryDto specImage) {
		this.specImage = specImage;
	}

	public GoodsSpecification getSpec() {
		return this.spec;
	}

	public void setSpec(GoodsSpecification spec) {
		this.spec = spec;
	}

	public Long getSpecImage_id() {
		return specImage_id;
	}

	public void setSpecImage_id(Long specImage_id) {
		this.specImage_id = specImage_id;
	}

	public Long getSpec_id() {
		return spec_id;
	}

	public void setSpec_id(Long spec_id) {
		this.spec_id = spec_id;
	}
	
}
